package unit5.part1;

import java.lang.*;
import static java.lang.Math.*;

public class MathDemo {

    public static void main(String[] args) {
        System.out.println(Math.abs(-2));// 求绝对值
        System.out.println(Math.ceil(2.1));// 向上取整

        System.out.println(abs(-2));// 求绝对值
        System.out.println(ceil(2.1));// 向上取整
    }
}
